#include<bits/stdc++.h>
using namespace std;
int n;
int a[1000005];
int b[1000005];
int sum=0;
int main()
{
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    cin>>n;
    for(int i=1;i<=n;i++)
        cin>>a[i];
    for(int i=1;i<=n;i++)
        b[a[i]]++;
    for(int i=1;i<=1e5;i++)
    {
        sum=max(0,sum-b[i]);
        sum+=b[i];
    }
    cout<<sum;
    return 0;
}